﻿using System.Collections.Generic;
using System.Threading;
using PhpDocBlockGenerator.Model.Php;

namespace PhpDocBlockGenerator.Model.Threading
{
    public class FileWorker : IWorker
    {
        
        public List<PhpFile> Files { get; set; }

        public Thread Thread { get; private set; }

        public FileWorker()
        {
            Thread = new Thread(Start);
        }

        public void Start()
        {
            foreach (PhpFile phpFile in Files)
            {
                phpFile.Execute();
            }
        }


    }
}
